﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Klinkby.Scheduler
{
    [Serializable]
    public class TaskCompletedEventArgs : EventArgs
    {
        readonly IScheduledTask _task;
        readonly Exception _exception;
        public TaskCompletedEventArgs(IScheduledTask task, Exception exception)
        {
            _task = task;
            _exception = exception;
        }
        public IScheduledTask Task
        {
            get { return _task; }
        }
        public Exception Exception
        {
            get { return _exception; }
        }
    }
}
